/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * NuGat-API named Chameleon developed by Simon De Baets to Verimag.
 *
 */


package chameleon.model.NuGatStructure.compile;

import chameleon.model.NuGatStructure.symbTable.SymbTable;
import chameleon.model.NuGatStructure.utils.Node;
import chameleon.gameSolver.NuGat.NuGatInterface;
import chameleon.model.NuGatStructure.NuGatStructure;

/**
 * This class is a wrapper to the C struct FlatHierarchy.c
 *
 * @author simon
 */
public class FlatHierarchy extends NuGatStructure {

    public FlatHierarchy(SymbTable st, NuGatInterface nugat){
        super (nugat.FlatHierarchy_create(st.ptr()),nugat);
    }

    /**
     * Return the transition relation to the flatHierarchy
     *
     * @return node_ptr
     */
    public Node getTrans(){
        return new Node (nugat_.FlatHierarchy_get_trans(this.ptr()),nugat_);
    }

    /**
     * 
     * @param node_ptr
     */

    public void setTrans(Node node){
        nugat_.FlatHierarchy_set_trans(this.ptr(), node.ptr());
    }
}
